//公共类

import {
	magicApi,
} from './request.js';
//获取登录logo
export const LoginLogo = () => {
	return magicApi({
		url: '/api/login/logo',
		method: 'POST',
		Authorization: false,
	});
}
//获取微信code
export const ApiWxlogin = (data) => {
	return magicApi({
		url: '/api/wxlogin',
		method: 'POST',
		Authorization: false,
		data: data
	});
}
//用户信息
export const UserInfo = () => {
	return magicApi({
		url: '/api/user/info',
		method: 'POST',
		Authorization: true,
	});
}
//获取openid
export const UserOpenId = (data) => {
	return magicApi({
		url: '/api/user/openid',
		method: 'POST',
		data: {
			code: data,
		},
		Authorization: true,
	});
}
//更新用户信息
export const UserInfoSave = (data) => {
	return magicApi({
		url: '/api/user/info/save',
		method: 'POST',
		Authorization: true,
		data: data
	});
}